www.gusucode.com > PHP展示型企业网站模板米拓整站源码 1.0PHP源码程序 > PHP展示型企业网站模板米拓整站源码 1.0/MetInfozs_v1.0/MetInfozs_v1.0/admin/seo/link/save.php
<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. $depth='../'; require_once $depth.'../login/login_check.php'; if($action=="add"){ if($link_type=='')metsave('-1',$lang_linkTypenonull,$depth); $query = "INSERT INTO $met_link SET webname = '$webname', info = '$info', link_type = '$link_type', weburl = '$weburl', weblogo = '$weblogo', contact = '$contact', orderno = '$orderno', com_ok = '$com_ok', show_ok = '$show_ok', lang = '$lang', addtime = '$m_now_date'"; $db->query($query); $htmjs = onepagehtm('link','index').'$|$'; $htmjs.= indexhtm(); metsave('../seo/link/index.php?anyid='.$anyid.'&lang='.$lang,'',$depth,$htmjs); } if($action=="editor"){ $query = "update $met_link SET webname = '$webname', info = '$info', link_type = '$link_type', weburl = '$weburl', weblogo = '$weblogo', contact = '$contact', orderno = '$orderno', com_ok = '$com_ok', show_ok = '$show_ok', addtime = '$m_now_date' where id='$id'"; $db->query($query); $htmjs = onepagehtm('link','index').'$|$'; $htmjs.= indexhtm(); metsave('../seo/link/index.php?anyid='.$anyid.'&lang='.$lang,'',$depth,$htmjs); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved. ?>